package com.dms.modules.message.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dms.modules.message.entity.UserMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMessageMapper extends BaseMapper<UserMessage> {
    
    /**
     * 获取用户未读消息数
     */
    Integer selectUnreadCount(@Param("userId") Long userId);
    
    /**
     * 批量插入用户消息
     */
    int batchInsert(@Param("list") java.util.List<UserMessage> list);
} 